import { useParams } from "react-router-dom";

export default function Invoice() {
    // 读取URL中的参数
    let params = useParams();
    return <h2>Invoice {params?.invoiceId}</h2>;
}